package com.example.authsystem.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "JWT登录响应")
public class JwtResponse {
    @Schema(description = "访问令牌", example = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...")
    private String accessToken;
    @Schema(description = "刷新令牌", example = "refresh_token_example")
    private String refreshToken;
    @Schema(description = "令牌类型", example = "Bearer")
    private String tokenType;
    @Schema(description = "过期时间(秒)", example = "3600")
    private Long expiresIn;
}